/* =========================================
   🧍 BODY
========================================= */

body {
    font-family: Arial, sans-serif;
    background-image: url('../Imagenes_y_Archivos/FondodepantallaP2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================
   🧢 HEADER
========================================= */

header.static-header {
    position: relative;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 60px;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 70px;
    z-index: 1001;
}


/* =========================================
   📦 MAIN
========================================= */

main.content {
    flex: 1;
    margin: 20px auto;
    padding: 40px;
    width: 80%;
    max-width: 1400px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    box-shadow: var(--sombra-hover);
}


/* =========================================
   🏷️ TITULO
========================================= */

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--blanco);
}


/* =========================================
   🔎 FORMULARIO
========================================= */

.formulario-busqueda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.formulario-busqueda label {
    font-weight: bold;
    color: var(--blanco);
}

.formulario-busqueda input[type="text"],
.formulario-busqueda select {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--gris-borde);
    min-width: 180px;
    background-color: var(--blanco);
}

/* BOTONES */
.formulario-busqueda button {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: var(--sombra-suave);
}

.formulario-busqueda button:hover {
    background-color: var(--azul-hover);
    box-shadow: var(--sombra-hover);
}


/* =========================================
   📊 RESULTADOS
========================================= */

#resultados {
    font-size: 16px;
    color: var(--blanco);
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}


/* =========================================
   📋 TABLA
========================================= */

.tabla-resultados-container {
    overflow-x: auto;
}

#tabla-resultados {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
}

#tabla-resultados th,
#tabla-resultados td {
    padding: 10px;
    border: 1px solid var(--gris-borde);
    text-align: center;
    font-size: 13px;
}

#tabla-resultados th {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
}

#tabla-resultados tbody tr:nth-child(even) {
    background-color: var(--gris-fondo);
}

#tabla-resultados tbody tr:hover {
    background-color: rgba(35, 102, 196, 0.1);
}


/* =========================================
   🗺️ MAPA
========================================= */

#map {
    width: 100%;
    height: 500px;
    border: 2px solid var(--azul-medio);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.leaflet-container {
    width: 100%;
    height: 100%;
}


/* =========================================
   📱 RESPONSIVE
========================================= */

@media (max-width: 768px) {

    main.content {
        width: 95%;
        padding: 25px;
    }

    .formulario-busqueda {
        flex-direction: column;
        align-items: stretch;
    }

    .formulario-busqueda input,
    .formulario-busqueda select,
    .formulario-busqueda button {
        width: 100%;
    }
}